package com.bpf.base.service.system;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bpf.base.dao.system.OperateLogMapper;
import com.bpf.base.model.system.OperateLog;
import com.bpf.base.model.system.OperateLogExample;

@Service
@Transactional(rollbackFor = Exception.class)
public class OperateLogService {

	@Autowired
	private OperateLogMapper operateLogMapper;

	public int insertSelective(OperateLog record) {

		return operateLogMapper.insertSelective(record);
	}

	public List<OperateLog> selectList(Map<String, Object> conditions) {

		return operateLogMapper.selectList(conditions);
	}

	public int selectCount(Map<String, Object> conditions) {

		return operateLogMapper.selectCount(conditions);
	}

	public int deleteByExample(OperateLogExample example) {

		return operateLogMapper.deleteByExample(example);
	}

}
